package edu.neusoft.yuejian_09.service;

import java.util.List;

import edu.neusoft.yuejian_09.bean.Comment;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 爽 on 2017/10/23.
 */

public interface CommentService {

    //获取某个帖子的评论列表
    @GET("Comments/getCommentsList")
    Call<List<Comment>> getCommentsByShow(
            @Query("show_id") int show_id
    );

    //发布评论
    @GET("Comments/insertComment")
    Call<Comment> insertNote(
            @Query("user_id") int user_id,
            @Query("s_id") int show_id,
            @Query("c_content") String c_content
    );

}
